﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Unis.RuleBase.Common
{
    public class ObjectDataInfo
    {
        // Fields
        private object _DataInDocType;
        private ObjectDataState _DataState;
        private string _ExecuteXmlCfgSqlName;
        private object _ObjectData;
        private int _SaveOrderIndex;
        private string[] _SavePropertys;
        private DateTime _SaveToCacheDateTime;
        private object _Tag;

        // Methods
        public ObjectDataInfo(object dataInDocType, object objectData)
        {
            this._DataInDocType = dataInDocType;
            this._ObjectData = objectData;
            this._SaveOrderIndex = 0;
        }

        // Properties
        public object DataInDocType
        {
            get
            {
                return this._DataInDocType;
            }
            set
            {
                this._DataInDocType = value;
            }
        }

        public ObjectDataState DataState
        {
            get
            {
                return this._DataState;
            }
            set
            {
                this._DataState = value;
            }
        }

        public string ExecuteXmlCfgSqlName
        {
            get
            {
                return this._ExecuteXmlCfgSqlName;
            }
            set
            {
                this._ExecuteXmlCfgSqlName = value;
            }
        }

        public object ObjectData
        {
            get
            {
                return this._ObjectData;
            }
            set
            {
                this._ObjectData = value;
            }
        }

        public int SaveOrderIndex
        {
            get
            {
                return this._SaveOrderIndex;
            }
            set
            {
                this._SaveOrderIndex = value;
            }
        }

        public string[] SavePropertys
        {
            get
            {
                return this._SavePropertys;
            }
            set
            {
                this._SavePropertys = value;
            }
        }

        public DateTime SaveToCacheDateTime
        {
            get
            {
                return this._SaveToCacheDateTime;
            }
            set
            {
                this._SaveToCacheDateTime = value;
            }
        }

        public object Tag
        {
            get
            {
                return this._Tag;
            }
            set
            {
                this._Tag = value;
            }
        }
    }
}
